package com.trkj.dao.mybatis;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.trkj.pojos.BigOffice;
import com.trkj.pojos.SmallOffice;
import com.trkj.vo.BigOfficeVo;
import com.trkj.vo.Doctor_arrangeVo;
import com.trkj.vo.Patient_registration_manageVo;
import com.trkj.vo.Serach_condition;

@Mapper
public interface M_hosp_patien {
	//加载科室
	public List<BigOfficeVo> check_office();
	//查询门诊挂号信息
	public List<Patient_registration_manageVo> load_menzhen(Serach_condition patient);
	//查询急诊挂号信息
	public List<Patient_registration_manageVo> load_jizhen(Serach_condition patient);
	//根据科室、日期、班次查询医生排班信息
	public List<Doctor_arrangeVo> load_doctor_by_small_office(Map<String,Object> map);
	//加载科室大类
	public List<BigOffice> get_big_office();
	//根据科室大类查找科室小类
	public List<SmallOffice> get_small_office(int big_office_id);
	//根据科室小类和日期加载医生值班信息
	public List<Doctor_arrangeVo> get_doctor_arrange(@Param("small_office_id") int small_office_id,
			@Param("data_") Date data_,@Param("classes") String classes);
	//改号
	public void updatePatientReg(@Param("reg_id") String reg_id,@Param("staff_id") String staff_id,
			@Param("charge_code") long charge_code,@Param("visit_time") Date visit_time);
}
